/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Premios.java
 *
 * Created on 09/09/2010, 23:54:34
 */

package Vista.Vendedor;

import java.util.Vector;
import Modelo.*;
import Controlador.*;

/**
 *
 * @author Foox
 */
public class I_Premios extends javax.swing.JFrame {

    private int suma=0;
    private int resta=0;
    
    private ControladorPremio con= new ControladorPremio();
    public Vector premios = con.buscarPremio();
    /** Creates new form Premios */
    
    public I_Premios() {
        initComponents();
      /*  premio1.setText(((Premios)premios.elementAt(1)).getNombre());
        valor1.setText(""+((Premios)premios.elementAt(1)).getCosto());
        premio2.setText(((Premios)premios.elementAt(2)).getNombre());
        valor2.setText(""+((Premios)premios.elementAt(2)).getCosto());
        premio3.setText(((Premios)premios.elementAt(3)).getNombre());
        valor3.setText(""+((Premios)premios.elementAt(3)).getCosto());
        premio4.setText(((Premios)premios.elementAt(4)).getNombre());
        valor4.setText(""+((Premios)premios.elementAt(4)).getCosto());*/
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        DNIbus = new javax.swing.JLabel();
        dni = new javax.swing.JTextField();
        Buscar = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jPanel1 = new javax.swing.JPanel();
        premio1 = new javax.swing.JRadioButton();
        premio2 = new javax.swing.JRadioButton();
        premio3 = new javax.swing.JRadioButton();
        premio4 = new javax.swing.JRadioButton();
        valor1 = new javax.swing.JLabel();
        valor2 = new javax.swing.JLabel();
        valor3 = new javax.swing.JLabel();
        valor4 = new javax.swing.JLabel();
        Prem = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        Nombre = new javax.swing.JLabel();
        Apellido = new javax.swing.JLabel();
        DNI = new javax.swing.JLabel();
        Dir = new javax.swing.JLabel();
        PsTipo = new javax.swing.JLabel();
        PuntosNum = new javax.swing.JLabel();
        Puntos = new javax.swing.JLabel();
        Client = new javax.swing.JLabel();
        CambPuntos = new javax.swing.JButton();
        Cancelar = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jLabel19 = new javax.swing.JLabel();
        Resta = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        Actualizar = new javax.swing.JButton();
        Canjeo = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jSeparator3 = new javax.swing.JSeparator();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Puntos");

        DNIbus.setText("DNI");

        Buscar.setText("jButton1");
        Buscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BuscarActionPerformed(evt);
            }
        });

        jScrollPane1.setBackground(new java.awt.Color(255, 255, 255));
        jScrollPane1.setForeground(new java.awt.Color(255, 255, 255));

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        premio1.setBackground(new java.awt.Color(255, 255, 255));
        premio1.setText("Tostadora");
        premio1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                premio1ActionPerformed(evt);
            }
        });

        premio2.setBackground(new java.awt.Color(255, 255, 255));
        premio2.setText("Lcd");
        premio2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                premio2ActionPerformed(evt);
            }
        });

        premio3.setBackground(new java.awt.Color(255, 255, 255));
        premio3.setText("Pendrive 8gb");
        premio3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                premio3ActionPerformed(evt);
            }
        });

        premio4.setBackground(new java.awt.Color(255, 255, 255));
        premio4.setText("Descuento en viaje nacional");
        premio4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                premio4ActionPerformed(evt);
            }
        });

        valor1.setText("250 pts.");

        valor2.setText("2300 pts.");

        valor3.setText("250 pts.");

        valor4.setText("800 pts");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(42, 42, 42)
                        .addComponent(valor1)
                        .addGap(129, 129, 129)
                        .addComponent(valor2))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(premio1)
                            .addComponent(premio3))
                        .addGap(74, 74, 74)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(premio2)
                            .addComponent(premio4)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(36, 36, 36)
                        .addComponent(valor3)
                        .addGap(149, 149, 149)
                        .addComponent(valor4)))
                .addContainerGap(120, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(premio1)
                    .addComponent(premio2))
                .addGap(24, 24, 24)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(valor1)
                    .addComponent(valor2))
                .addGap(59, 59, 59)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(premio3)
                    .addComponent(premio4))
                .addGap(24, 24, 24)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(valor3)
                    .addComponent(valor4))
                .addContainerGap(199, Short.MAX_VALUE))
        );

        jScrollPane1.setViewportView(jPanel1);

        Prem.setFont(new java.awt.Font("Tahoma", 0, 14));
        Prem.setForeground(new java.awt.Color(153, 153, 153));
        Prem.setText("Premios");

        jPanel2.setBackground(new java.awt.Color(255, 255, 255));

        Nombre.setText("Nombre: Hernesto");

        Apellido.setText("Apellido: Ferrarese");

        DNI.setText("DNI: 33923213");

        Dir.setText("Direccion: Bruno tapia 514");

        PsTipo.setText("Pasajero tipo: Normal");

        PuntosNum.setFont(new java.awt.Font("Tahoma", 0, 48));
        PuntosNum.setText("30000");

        Puntos.setText("Puntos:");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Nombre)
                    .addComponent(Apellido)
                    .addComponent(DNI)
                    .addComponent(Dir)
                    .addComponent(PsTipo))
                .addContainerGap(252, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(215, Short.MAX_VALUE)
                .addComponent(Puntos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(PuntosNum))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(Nombre)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Apellido)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(DNI)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Dir)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(PsTipo)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 141, Short.MAX_VALUE)
                        .addComponent(PuntosNum))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addComponent(Puntos)
                        .addContainerGap())))
        );

        Client.setFont(new java.awt.Font("Tahoma", 0, 14));
        Client.setForeground(new java.awt.Color(153, 153, 153));
        Client.setText("Cliente");

        CambPuntos.setText("Cambiar puntos");
        CambPuntos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CambPuntosActionPerformed(evt);
            }
        });

        Cancelar.setText("Cancelar");

        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel19.setText("Cambio:");

        Resta.setFont(new java.awt.Font("Tahoma", 0, 18));
        Resta.setForeground(new java.awt.Color(0, 204, 51));
        Resta.setText("3000 pts - 2300 pts");

        jLabel21.setText("Pts Restantes:");

        jLabel22.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel22.setForeground(new java.awt.Color(0, 204, 51));
        jLabel22.setText("700");

        Actualizar.setText("Actulizar");
        Actualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ActualizarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel19)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Resta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel21)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel22)
                .addContainerGap(37, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap(291, Short.MAX_VALUE)
                .addComponent(Actualizar))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(jLabel21)
                    .addComponent(jLabel22)
                    .addComponent(Resta))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)
                .addComponent(Actualizar)
                .addContainerGap())
        );

        Canjeo.setFont(new java.awt.Font("Tahoma", 0, 18));
        Canjeo.setForeground(new java.awt.Color(153, 153, 153));
        Canjeo.setText("Canjeo de Premios:");

        jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 840, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(CambPuntos)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Cancelar))
                    .addComponent(Canjeo, javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(DNIbus)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(dni, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(Buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(225, 225, 225))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(Client))
                                .addGap(18, 18, 18)))
                        .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(Prem, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 362, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE))
                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addGap(31, 31, 31))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Canjeo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(dni, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Buscar)
                            .addComponent(DNIbus))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(6, 6, 6)
                                .addComponent(Prem)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 304, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(Client)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 446, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(CambPuntos)
                    .addComponent(Cancelar)))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-848)/2, (screenSize.height-568)/2, 848, 568);
    }// </editor-fold>//GEN-END:initComponents

    private void premio2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_premio2ActionPerformed
        // TODO add your handling code here:

       if(premio1.isSelected()){
            suma=suma+((Premios)premios.elementAt(2)).getCosto();
            System.out.println(suma);

        }else{
            suma=suma-((Premios)premios.elementAt(2)).getCosto();
            System.out.println(suma);
        }
    }//GEN-LAST:event_premio2ActionPerformed

    private void CambPuntosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CambPuntosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_CambPuntosActionPerformed

    private void BuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuscarActionPerformed


        ControladorCliente conCli= new ControladorCliente();
        Cliente auxCliente = conCli.buscarCliente(Integer.parseInt(dni.getText()));
        if(auxCliente!=null){
          Nombre.setText(auxCliente.getNombre());
          DNI.setText(""+auxCliente.getDni());
          Dir.setText(auxCliente.getDireccion());
          PsTipo.setText(auxCliente.getTipo_Cliente());
          //Resta.setText(auxCliente.getText()+" - "+""+resta+" = "+(AuxClient.getPuntos()-suma) );
      }else{
          dni.setText("No se encontro ningun Cliente");
          Nombre.setText("");
          Apellido.setText("");
          DNI.setText("");
          Dir.setText("");
          PsTipo.setText("");
          PuntosNum.setText("");

      }

    }//GEN-LAST:event_BuscarActionPerformed

    private void premio1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_premio1ActionPerformed
        // TODO add your handling code here:
        
        if(premio1.isSelected()){
            suma=suma+((Premios)premios.elementAt(1)).getCosto();
            System.out.println(suma);

        }else{
            suma=suma-((Premios)premios.elementAt(1)).getCosto();
            System.out.println(suma);
        }
    }//GEN-LAST:event_premio1ActionPerformed

    private void premio3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_premio3ActionPerformed
        // TODO add your handling code here:
        if(premio1.isSelected()){
            suma=suma+((Premios)premios.elementAt(3)).getCosto();
            System.out.println(suma);

        }else{
            suma=suma-((Premios)premios.elementAt(3)).getCosto();
            System.out.println(suma);
        }
    }//GEN-LAST:event_premio3ActionPerformed

    private void ActualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ActualizarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ActualizarActionPerformed

    private void premio4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_premio4ActionPerformed
        // TODO add your handling code here:
        if(premio1.isSelected()){
            suma=suma+((Premios)premios.elementAt(4)).getCosto();
            System.out.println(suma);

        }else{
            suma=suma-((Premios)premios.elementAt(4)).getCosto();
            System.out.println(suma);
        }
    }//GEN-LAST:event_premio4ActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new I_Premios().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Actualizar;
    private javax.swing.JLabel Apellido;
    private javax.swing.JButton Buscar;
    private javax.swing.JButton CambPuntos;
    private javax.swing.JButton Cancelar;
    private javax.swing.JLabel Canjeo;
    private javax.swing.JLabel Client;
    private javax.swing.JLabel DNI;
    private javax.swing.JLabel DNIbus;
    private javax.swing.JLabel Dir;
    private javax.swing.JLabel Nombre;
    private javax.swing.JLabel Prem;
    private javax.swing.JLabel PsTipo;
    private javax.swing.JLabel Puntos;
    private javax.swing.JLabel PuntosNum;
    private javax.swing.JLabel Resta;
    private javax.swing.JTextField dni;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JRadioButton premio1;
    private javax.swing.JRadioButton premio2;
    private javax.swing.JRadioButton premio3;
    private javax.swing.JRadioButton premio4;
    private javax.swing.JLabel valor1;
    private javax.swing.JLabel valor2;
    private javax.swing.JLabel valor3;
    private javax.swing.JLabel valor4;
    // End of variables declaration//GEN-END:variables

}
